package cn.kgc.service.Impl;


import cn.kgc.mapper.HouseMapper;
import cn.kgc.pojo.House;
import cn.kgc.service.HouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("houseService")
public class HouseServiceImpl implements HouseService {

    @Autowired
    private HouseMapper houseMapper;

    @Override
    public List<House> houseList(String type) {
        return houseMapper.houseList(type);
    }

    @Override
    public int intsert(House house) {
        return houseMapper.intsert(house);
    }
}
